﻿#include "volumeupdateevent.h"

QEvent::Type VolumeUpdateEvent::mEventType = QEvent::None;

VolumeUpdateEvent::VolumeUpdateEvent(int volume) :QEvent(eventType())
{
    mVolume = volume;
}

VolumeUpdateEvent::~VolumeUpdateEvent()
{

}

QEvent::Type VolumeUpdateEvent::eventType()
{
    if (mEventType == QEvent::None) {
        mEventType = (QEvent::Type)QEvent::registerEventType();
    }
    return mEventType;
}

int VolumeUpdateEvent::getVolume(void)
{
   return mVolume;
}
